package com.hu.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hu.common.pojo.Blog;
import com.hu.common.vo.BlogChartsVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hu
 * @since 2023-09-07
 */
public interface IBlogService extends IService<Blog> {
    void addReadCount(Integer id);

    void addCommentCount(Integer blogId);

    void reduceCommentCount(Integer blogId, int deletedCount);

    void setPraise(Integer blogId, Integer userId);

    Boolean isPraise(Integer blogId, Integer userId);

    List<BlogChartsVo>findBlogCharts(String startTime, String endTime);
}
